package com.sky.mapper;

import com.sky.annotate.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import com.sky.vo.DishItemVO;
import com.sky.vo.SetmealOverViewVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealMapper {


    List<Setmeal> selectSetmealByCategoryId(Long id);

    Integer selectSetmealByDishId(Long id);

    List<Setmeal> pageSelectSetmeal(Setmeal setmeal);

    Setmeal selectSetmealById(Long id);

    @AutoFill(OperationType.INSERT)
    void insertSetmeal(Setmeal setmeal);

    void updateSetmeal(Setmeal setmeal);

    void deleteSetmeal(List<Long> ids);

    List<DishItemVO> selectDishBySetmealId(Long id);

    SetmealOverViewVO countSetmealStatus();
}
